#include "consumer.hpp"
#include "taskqueue.hpp"
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
consumer::consumer()
{
}
consumer::~consumer()
{
}
void consumer::consume(taskqueue &taskQue)
{
    int cnt = 20;
    while (cnt--)
    {
        int number = taskQue.pop();
        cout << "Consumer conseme " << number << endl;
        sleep(1);
    }
}